package com.zbkj.crmeb.plat.by.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Zhangxuyang
 * @date 4/29/2024 6:48 下午
 */

@Data
@NoArgsConstructor
public class TikTokPushInfo {
    private Long categoryId;
    private Integer merId;
    private String productName;
    private String outWarehouseId;
    private Long preSellType;
    private List<Prop> tikTokBatchPropList;
    private List<Prop> tikTokCategoryPropList;
    private List<Prop> tikTokPeriodPropList;
    private List<Prop> tikTokSalePropList;
    private List<Prop> tikTokSkuCategoryPropList;
    private List<ProductProp> tikTokProductPropList;

    @Data
    @NoArgsConstructor
    public static class Prop {
        private com.doudian.open.api.supplyChain_batchGetCargoDetail.data.PropKey propKey;
        private com.doudian.open.api.supplyChain_batchGetCargoDetail.data.PropVal propVal;
        private Boolean isMulti;
        private Boolean isRequired;
    }

    @Data
    @NoArgsConstructor
    public static class ProductProp {
        private Long propertyId;
        private String propertyName;
        private Value value;
        private List<Value> valueList;
        @JsonProperty(value = "diy_type")
        private Long diyType;
        @JsonProperty(value = "measure_info")
        private Object measureInfo;
        private String type;
        private Boolean required;

        @Data
        @NoArgsConstructor
        public static class Value {
            private String name;
            private String value;
            private Long valueId;

        }
    }

}
